package com.kingdee.eas.customer.wh.wtd.api;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.kingdee.bos.Context;
import com.kingdee.eas.customer.wh.wtd.vo.VipStockoutOrderVo;

/**
 * @author cz
 * @version 1.0
 * @description: 旺店通-委外出入库单API
 * @date 2024/6/13 10:05
 */
public class VipStockinoutOrderApi {

	public static String vipStockinoutOrderPush(Context ctx, VipStockoutOrderVo vo){
        String relativeUrl = "vip_wms_stockinout_order_push.php";
        System.out.println(String.format("=====旺店通—委外出入库单(%s接口)：开始=====", relativeUrl));
        try {
            String stockout_info_json = JSON.toJSONString(vo);
            Map<String, String> params = new HashMap<String, String>();
            params.put("stockin_info", stockout_info_json);
            System.out.println(String.format("=====旺店通—委外出入库单(%s接口); 参数信息：%s=====", relativeUrl, params));
            String response = WdtClient.executeApi(ctx, relativeUrl, params);
            System.out.println(String.format("=====旺店通—委外出入库单(%s接口); 接口返回：%s=====", relativeUrl, response));
            return response;
        } catch (Exception e) {
            System.out.println(String.format("=====旺店通—委外出入库单(%s接口)：异常; 异常信息：%s=====", relativeUrl, e));
        }
        return null;
    }
}
